package com.dotlink.appuser.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dotlink.appuser.entity.UserInfo;
import com.dotlink.appuser.service.UserInfoService;
import com.dotlink.frame.filter.WebContext;
import com.dotlink.frame.utils.page.Pagination;

/**
 * APP用户信息
 * @author liupf
 *
 */
@Controller
@RequestMapping(value = "/web/appuser")
public class UserInfoController {

	@Autowired
	private UserInfoService userInfoService;

	@RequestMapping("/list")
	public String list(UserInfo userInfo, Pagination pagination) {

		List<UserInfo> list = userInfoService.list(userInfo, pagination);
		
		WebContext.setAttribute("user", userInfo);
		WebContext.setAttribute("list", list);

		return "/appuser/list";
	}

}
